package com.lixin.smartclassroom.ui.home.tab5.activity

import com.lixin.smartclassroom.databinding.ActivityPreviewQrcodeBinding
import com.lixinkeji.base.BaseActivity
import com.lixinkeji.extension.getIntentString
import com.lixinkeji.extension.load
import com.lixinkeji.extension.onClick

/**
 * Description 预览二维码
 * Author: lwc
 * Date:2023/12/9 11:03
 */
class QrCodePreviewAct : BaseActivity<ActivityPreviewQrcodeBinding>() {
    override fun getViewBinding() = ActivityPreviewQrcodeBinding.inflate(layoutInflater)

    override fun topBarHide() = true
    override fun startPadding() = false
    override fun title() = "联系我们"
    private var wxCodeUrl = ""


    override fun iniView() {
        wxCodeUrl = getIntentString("url")
        binding.ivQrCode.load(wxCodeUrl)

    }

    override fun onClick() {
        binding.ivBack.onClick {
            finish()
        }
    }


}